/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package MainPackage;

import java.util.TimerTask;

/**
 *
 * @author leaderpro@gmail.com
 */
public class Clock extends  TimerTask {

    int timeLeft;
    public Clock(int maxTime) {
        this.timeLeft = maxTime;
    }
    
    public void run() {
        timeLeft--;
    }
    public int getTimeLeft()
    {
        return this.timeLeft;
    }
    
}
